import { IsNotEmpty, IsString } from 'class-validator';
import { Column, PrimaryGeneratedColumn } from 'typeorm';

export class CreateTest2Dto {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()
  @IsNotEmpty({ message: 'new_tablecol is required' })
  @IsString()
  newTablecol: string;

  @Column()
  @IsNotEmpty({ message: 'Name is required' })
  @IsString()
  name: string;
}
